<?php
class CouponorderModel extends CommonModel {
	// 自动验证设置
	protected $_validate	 =	 array(
		array('order_id','require','请填写订单号'),
        array('name','require','请填写姓名'),
        array('mobile','require','请填写手机'),
		array('province','require','请填写省份'),
		array('city','require','请填写城市'),
		array('town','require','请填写区域'),
		array('address','require','请填写详细地址'),
		array('number','require','请填写礼卡卡号'),
		array('password','require','请填写密码'),
    );
	// 自动填充设置
	protected $_auto	 =	 array(
		array('ip','get_client_ip',self::MODEL_INSERT,'function'),
		array('status','2',self::MODEL_INSERT),
		array('create_time','time',self::MODEL_INSERT,'function'),
	);
}
?>